let username = document.querySelector("#username");
let password = document.querySelector("#password");
let btn_Login = document.querySelector("#submit");

btn_Login.onclick = function () {
  let username_val = username.value;
  let password_val = password.value;
  if (username_val == "" || password_val == "") {
    alert("请输入用户名和密码！");
  } else if (username_val != "admin" && password_val == "123456") {
    alert("请输入正确的用户名和密码！");
  } else {
    window.location = "blog_list.html";
  }
  //   console.log(username_val, password_val);
};
